package com.zhang.family_doctor.service;

import com.github.pagehelper.PageInfo;
import com.zhang.family_doctor.entity.R;
import com.zhang.family_doctor.entity.Tag;
import com.zhang.family_doctor.entity.Team;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TagService {

    /**
     * 新增标签
     * @param tag
     * @param request
     * @return
     */
    R<String> save(Tag tag, HttpServletRequest request);

    /**
     * 修改标签
     * @param tag
     * @param request
     * @return
     */
    R<String> update(Tag tag, HttpServletRequest request);

    /**
     * 分页查询标签
     * @param pageNum
     * @param pageSize
     * @param name
     * @return
     */
    R<PageInfo<Tag>> getList(Integer pageNum, Integer pageSize, String name);

    /**
     * 根据id删除标签
     * @param id
     * @return
     */
    R<String> delete(Integer id);

    /**
     * 启用或禁用标签
     * @param id
     * @param state
     * @return
     */
    R<String> enableOrDisable(Integer id, Integer state);


}
